#!/usr/bin/env python
import rospy
from std_msgs.msg import String

def callback(data):
    print(data.data)
    
def listener():
    rospy.init_node('mav_listener', anonymous=True)
    rospy.Subscriber("/mav_pose_str", String, callback)
    rospy.spin()

if __name__ == '__main__':
    listener()